// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.text.TextUtils;
import android.widget.*;
import com.nnee.p_pr.p_atom.*;
import com.nnee.p_pr.cls_b;
import com.nnee.p_pr.p_prot.cls_d;
import java.util.LinkedList;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            SubsInfoActivity, dc

class cls_dt extends cls_b
{

	cls_dt(SubsInfoActivity subsinfoactivity)
    {
        a = subsinfoactivity;
        super();
    }

    public void a()
    {
        a.b();
    }

    public void b(int i, int j, String s, boolean flag)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.r(a);
            if(cls_SubsInfoActivity.s(a) <= 0)
                a.b();
            a.b();
            dc.a(cls_SubsInfoActivity.m(a), j);
        }
_L2:
        return;
        Exception exception;
        exception;
        throw exception;
        NullPointerException nullpointerexception;
        nullpointerexception;
        if(true) goto _L2; else goto _L1
_L1:
    }

    public void b(int i, cls_d d1)
    {
        if(!cls_SubsInfoActivity.l(a).contains(new Integer(i))) goto _L2; else goto _L1
_L1:
        cls_SubsInfoActivity.l(a).remove(new Integer(i));
        if(d1 != null) goto _L3; else goto _L2
_L2:
        return;
_L3:
        if(d1.j.size() <= 0 || cls_SubsInfoActivity.q(a) != i)
            break; /* Loop/switch isn't completed */
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            Toast.makeText(cls_SubsInfoActivity.m(a), 0x7f0a0077, 0).show();
        }
        cls_SubsInfoActivity.o(a).setVisibility(8);
        cls_SubsInfoActivity.n(a).setVisibility(8);
_L6:
        a.finish();
        if(true) goto _L2; else goto _L4
_L4:
        if(d1.i.size() <= 0 || cls_SubsInfoActivity.q(a) != i || d1.i.getFirst() == null || !cls_SubsInfoActivity.l(a).contains(new Integer(i))) goto _L6; else goto _L5
_L5:
        cls_SubsInfoActivity.l(a).remove(new Integer(i));
        Toast.makeText(cls_SubsInfoActivity.m(a), ((r)d1.i.getFirst()).e(), 0).show();
          goto _L6
    }

    public void b(int i, cls_d d1, boolean flag)
    {
        try
        {
            if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
            {
                cls_SubsInfoActivity.l(a).remove(new Integer(i));
                com.nnee.p_pr.p_activity.cls_SubsInfoActivity.r(a);
                if(cls_SubsInfoActivity.s(a) <= 0)
                    a.b();
                a.b();
                if(d1 != null && d1.h != null)
                    cls_SubsInfoActivity.a(a, d1);
            }
        }
        catch(NullPointerException nullpointerexception) { }
        break MISSING_BLOCK_LABEL_107;
        Exception exception;
        exception;
        throw exception;
    }

    public void d(int i, int j, String s)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            dc.a(cls_SubsInfoActivity.m(a), j);
        }
    }

    public void d(int i, int j, String s, boolean flag)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.r(a);
            if(cls_SubsInfoActivity.s(a) <= 0)
                a.b();
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.b(a, false);
            dc.a(cls_SubsInfoActivity.m(a), j);
        }
    }

    public void d(int i, cls_d d1, boolean flag)
    {
        boolean flag1 = false;
        if(!cls_SubsInfoActivity.l(a).contains(new Integer(i))) goto _L2; else goto _L1
_L1:
        cls_SubsInfoActivity.l(a).remove(new Integer(i));
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.r(a);
        if(cls_SubsInfoActivity.s(a) <= 0)
            a.b();
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.b(a, false);
        if(d1 == null) goto _L4; else goto _L3
_L3:
        LinkedList linkedlist = d1.h;
        if(linkedlist != null) goto _L5; else goto _L4
_L4:
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setVisibility(8);
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setEnabled(flag1);
_L6:
        return;
_L2:
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setVisibility(8);
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setEnabled(flag1);
          goto _L6
_L5:
        String s;
        ad ad1;
        cls_SubsInfoActivity.a(a, d1, flag);
        s = cls_SubsInfoActivity.t(a);
        cls_SubsInfoActivity.a(a, null);
        ad1 = d1.g;
label0:
        {
            if(ad1 != null)
                break label0;
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setVisibility(8);
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setEnabled(flag1);
        }
          goto _L6
        String s1;
        boolean flag2;
        s1 = d1.g.b(g.i);
        flag2 = TextUtils.isEmpty(s1);
label1:
        {
            if(!flag2)
                break label1;
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setVisibility(8);
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setEnabled(flag1);
        }
          goto _L6
        if(!s1.equals(s)) goto _L8; else goto _L7
_L7:
        cls_SubsInfoActivity.a(a, null);
        boolean flag3 = flag1;
_L9:
        Button button = com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a);
        if(!flag3)
            flag1 = 8;
        button.setVisibility(flag1);
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setEnabled(flag3);
          goto _L6
_L8:
        cls_SubsInfoActivity.a(a, s1);
        flag3 = true;
          goto _L9
        Exception exception1;
        exception1;
        exception1.printStackTrace();
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setVisibility(8);
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setEnabled(flag1);
          goto _L6
        Exception exception;
        exception;
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setVisibility(8);
        com.nnee.p_pr.p_activity.cls_SubsInfoActivity.u(a).setEnabled(flag1);
        throw exception;
    }

    public void e(int i, int j, String s)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            dc.a(cls_SubsInfoActivity.m(a), j);
        }
    }

    public void f(int i, cls_d d1)
    {
        if(d1 != null) goto _L2; else goto _L1
_L1:
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
_L4:
        return;
_L2:
        if(d1.h.size() > 0)
        {
            if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
            {
                cls_SubsInfoActivity.l(a).remove(new Integer(i));
                Toast.makeText(cls_SubsInfoActivity.m(a), 0x7f0a0076, 0).show();
                if(com.nnee.p_pr.p_activity.cls_SubsInfoActivity.d(a) != null && d1.h.getFirst() != null)
                {
                    com.nnee.p_pr.p_activity.cls_SubsInfoActivity.d(a).a(aa.a);
                    if(com.nnee.p_pr.p_activity.cls_SubsInfoActivity.d(a).L())
                    {
                        cls_SubsInfoActivity.n(a).setVisibility(0);
                        cls_SubsInfoActivity.n(a).setText(0x7f0a00a7);
                        cls_SubsInfoActivity.n(a).setCompoundDrawablesWithIntrinsicBounds(0x7f02002d, 0, 0, 0);
                    }
                }
                cls_SubsInfoActivity.o(a).setVisibility(8);
                cls_SubsInfoActivity.p(a).setText(0x7f0a0057);
                cls_SubsInfoActivity.p(a).setCompoundDrawablesWithIntrinsicBounds(0x7f02002c, 0, 0, 0);
            }
        } else
        if(d1.i.size() > 0 && d1.i.getFirst() != null && cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            Toast.makeText(cls_SubsInfoActivity.m(a), ((r)d1.i.getFirst()).e(), 0).show();
        }
        if(true) goto _L4; else goto _L3
_L3:
    }

    public void n(int i, cls_d d1)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            Toast.makeText(cls_SubsInfoActivity.m(a), 0x7f0a0099, 0).show();
            cls_SubsInfoActivity.c(a, true);
            if(cls_SubsInfoActivity.c(a) && cls_SubsInfoActivity.v(a) && cls_SubsInfoActivity.w(a))
                a.finish();
            else
                cls_SubsInfoActivity.x(a);
        }
    }

    public void p(int i, int j, String s)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            dc.a(cls_SubsInfoActivity.m(a), j);
            cls_SubsInfoActivity.c(a, true);
            if(cls_SubsInfoActivity.c(a) && cls_SubsInfoActivity.v(a) && cls_SubsInfoActivity.w(a))
                a.finish();
        }
    }

    public void r(int i, cls_d d1)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            Toast.makeText(cls_SubsInfoActivity.m(a), 0x7f0a00ad, 0).show();
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.d(a, true);
            if(cls_SubsInfoActivity.c(a) && cls_SubsInfoActivity.v(a) && cls_SubsInfoActivity.w(a))
                a.finish();
        }
    }

    public void u(int i, int j, String s)
    {
        if(cls_SubsInfoActivity.l(a).contains(new Integer(i)))
        {
            cls_SubsInfoActivity.l(a).remove(new Integer(i));
            dc.a(cls_SubsInfoActivity.m(a), j);
            com.nnee.p_pr.p_activity.cls_SubsInfoActivity.d(a, true);
            if(cls_SubsInfoActivity.c(a) && cls_SubsInfoActivity.v(a) && cls_SubsInfoActivity.w(a))
                a.finish();
        }
    }

    final SubsInfoActivity a;
}
